from app_first_pratice.base_page import BasePage
from app_first_pratice.main_page import MainPage


class App(BasePage):
    # 启动app
    def start_app(self):
        self.driver.launch_app()
        return self

    # 重启app
    def restart_app(self):
        self.driver.quit()
        self.driver.launch_app()
        return self

    # 关闭app
    def stop_app(self):
        self.driver.quit()

    # 进入app首页
    def goto_main_page(self):
        return MainPage()
